
<!DOCTYPE html>
<html lang="">


<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
  <meta name="theme-color" content="#202020">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <script src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>
  
  
    <meta name="keywords" content>
  

  
    <meta name="description" content="51AIOps 专注于运维自动化  微信： kaipython,null">
  
  
  
  <link rel="icon" type="image/x-icon" href="/images/footer-logo.png">
  
  <title> [ 51AIOps 专注于运维自动化  微信： kaipython ]null</title>
  
    <!-- stylesheets list from config.yml -->
    
      <link rel="stylesheet" href="//cdn.bootcss.com/pure/1.0.0/pure-min.css">
    
      <link rel="stylesheet" href="/css/xoxo.css">
    
  
</head>


<body>
  <div class="nav-container">
    <nav class="home-menu pure-menu pure-menu-horizontal">
  <a class="pure-menu-heading" href="/">
    
    <span class="title" style="text-transform:none">51AIOps 专注于运维自动化  微信： kaipython</span>
  </a>

  <ul class="pure-menu-list clearfix">
      
          
            
              <li class="pure-menu-item actived"><a href="/" class="pure-menu-link">首页</a></li>
            
          
      
  </ul>
   
</nav>

  </div>

  <div class="container" id="content-outer">
    <div class="inner" id="content-inner" style='margin-left:-68px!important'>
      

  <div class="recent-posts">
    

      <article class="recent-post-item">
        <a class="title" href="/2019/12/08/Django的分页/"><h2>Django的分页</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-12-07T16:00:00.000Z">
            2019-12-08
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/12/08/Django的分页/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/12/08/iview的介绍/"><h2>iview-admin的介绍</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-12-07T16:00:00.000Z">
            2019-12-08
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/12/08/iview的介绍/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/11/09/Django的cookie和session介绍/"><h2>第二十三章 Django cookie 与 session</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-11-08T16:00:00.000Z">
            2019-11-09
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/11/09/Django的cookie和session介绍/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/10/30/Go语言标准库flag基本使用/"><h2>GO语言之flag的使用</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-10-29T16:00:00.000Z">
            2019-10-30
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/10/30/Go语言标准库flag基本使用/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/10/29/Go语言之fmt的使用/"><h2>Go语言之fmt的使用</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-10-28T16:00:00.000Z">
            2019-10-29
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/10/29/Go语言之fmt的使用/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/10/10/五颜六色的发布方式/"><h2>各种部署方式介绍</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-10-09T16:00:00.000Z">
            2019-10-10
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/10/10/五颜六色的发布方式/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/10/09/Git合并多个提交/"><h2>Git合并多个提交</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-10-08T16:00:00.000Z">
            2019-10-09
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/10/09/Git合并多个提交/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/10/08/Devops和sre/"><h2>DevOps 和 SRE 的定义和异同</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-10-07T16:00:00.000Z">
            2019-10-08
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/10/08/Devops和sre/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/09/29/DjangoOrm模型的使用/"><h2>第二十一章 Django的模型</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-09-28T16:00:00.000Z">
            2019-09-29
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/09/29/DjangoOrm模型的使用/"> 阅读全文〉</a>
      </article>
    

      <article class="recent-post-item">
        <a class="title" href="/2019/09/29/Djangoorm多表实例/"><h2>第二十二章 Django ORM-多表实例</h2></a>
        <div class="post-meta">
          
          <time class="time" datetime="2019-09-28T16:00:00.000Z">
            2019-09-29
          </time>
          
          <span class="slash">/</span>
          
          
          

        </div>

        
        <a class="more" href="/2019/09/29/Djangoorm多表实例/"> 阅读全文〉</a>
      </article>
    
  </div>



    </div>

    
      <nav class="page-nav text-center">
          <a class="extend prev" rel="prev" href="/page/4/">〈</a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/4/">4</a><span class="page-number current">5</span><a class="page-number" href="/page/6/">6</a><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/6/">〉</a>
      </nav>
    

  </div>
  <footer class="footer text-center">
    <div id="bottom-inner">
        <a class="bottom-item" href target="_blank">GitHub</a> |
        <a class="bottom-item" href>友情链接</a> |
        <a class="bottom-item" href="https://hexo.io" target="_blank">Powered by hexo</a> |
        <a class="bottom-item" href="https://github.com/fooying/hexo-theme-xoxo-plus" target="_blank">Theme xoxo-plus</a> |
        <a class="bottom-item" href="/atom.xml">订阅</a>
    </div>
</footer>

  

<script>
  (function(window, document, undefined) {

    var timer = null;

    function returnTop() {
      cancelAnimationFrame(timer);
      timer = requestAnimationFrame(function fn() {
        var oTop = document.body.scrollTop || document.documentElement.scrollTop;
        if (oTop > 0) {
          document.body.scrollTop = document.documentElement.scrollTop = oTop - 50;
          timer = requestAnimationFrame(fn);
        } else {
          cancelAnimationFrame(timer);
        }
      });
    }

    var hearts = [];
    window.requestAnimationFrame = (function() {
      return window.requestAnimationFrame ||
        window.webkitRequestAnimationFrame ||
        window.mozRequestAnimationFrame ||
        window.oRequestAnimationFrame ||
        window.msRequestAnimationFrame ||
        function(callback) {
          setTimeout(callback, 1000 / 60);
        }
    })();
    init();

    function init() {
      css(".heart{z-index:9999;width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
      attachEvent();
      gameloop();
      addMenuEvent();
    }

    function gameloop() {
      for (var i = 0; i < hearts.length; i++) {
        if (hearts[i].alpha <= 0) {
          document.body.removeChild(hearts[i].el);
          hearts.splice(i, 1);
          continue;
        }
        hearts[i].y--;
        hearts[i].scale += 0.004;
        hearts[i].alpha -= 0.013;
        hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
      }
      requestAnimationFrame(gameloop);
    }

    /**
     * 给logo设置点击事件
     * 
     * - 回到顶部
     * - 出现爱心
     */
    function attachEvent() {
      var old = typeof window.onclick === "function" && window.onclick;
      var logo = document.getElementById("logo");
      if (logo) {
        logo.onclick = function(event) {
          returnTop();
          old && old();
          createHeart(event);
        }
      }
      
    }

    function createHeart(event) {
      var d = document.createElement("div");
      d.className = "heart";
      hearts.push({
        el: d,
        x: event.clientX - 5,
        y: event.clientY - 5,
        scale: 1,
        alpha: 1,
        color: randomColor()
      });
      document.body.appendChild(d);
    }

    function css(css) {
      var style = document.createElement("style");
      style.type = "text/css";
      try {
        style.appendChild(document.createTextNode(css));
      } catch (ex) {
        style.styleSheet.cssText = css;
      }
      document.getElementsByTagName('head')[0].appendChild(style);
    }

    function randomColor() {
      // return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
      return "#F44336";
    }

    function addMenuEvent() {
      var menu = document.getElementById('menu-main-post');
      if (menu) {
        var toc = document.getElementById('toc');
        if (toc) {
          menu.onclick = function() {
            if (toc) {
              if (toc.style.display == 'block') {
                toc.style.display = 'none';
              } else {
                toc.style.display = 'block';
              }
            }
          };
        } else {
          menu.style.display = 'none';
        }
      }
    }

  })(window, document);
</script>

  



  

</body>
</html>
